<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:x="http://xseam.dev.java.net/seam"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      template="/layout/template.xhtml">
	<ui:define name="body">
	
		<h2>Cadastrar docente</h2>
		<hr style="color: #666666;width: 700px;float: left;"/>
		<br />
		<x:form id="usuarioForm" showMessages="true">
		
			<x:inputText id="nomeUsuario" 
				maxlength="14" value="#{usuario.nomeUsuario}" label="Nome de usuário: " size="20" required="false" readonly="true"/>
			<br class="clear" />
			
			<x:inputSecret id="senhaAtual" 
				maxlength="10" value="#{usuario.senhaAtual}" size="20" label="Senha: " required="true"/>
			<br class="clear" />
			
			<x:inputSecret id="senhaSenhaNova" 
				maxlength="10" value="#{usuario.senhaNova}" size="20" label="Senha: " required="true"/>
			<br class="clear" />
			
			<x:inputSecret id="confirmarSenha" 
				maxlength="10" value="#{usuario.confirmaSenha}" size="20" label="Confirmar senha: " required="true"/>
			<br class="clear" />
			
			<s:div styleClass="actionButtons">
				<h:commandButton id="btnSalvar" value="Salvar" action="#{usuarioAction.atualizarSenha()}" />
				<rich:spacer width="10px"/>
				<h:commandButton id="btnCancelar" value="Cancelar" action="RESULT_BACK" immediate="true" />
			</s:div>
			
		</x:form>
		
	</ui:define>
	
</ui:composition>